Functions

 

 

Function

Parameters

Return

initialize

-

{version : string, identifier : string}

 

version : proxsign version number (2.0.0.buildnum)

identifier :  interface GUID : f8e5f470-bcff-4c50-8fd6-ccfa2fea12d6

This function is automatically called on initialization to identify and verify proxsign interface and obtain version number. See chapter Get Component Version.

signXML

XMLProperties

Result

 

Used for signing XML. Input is an XML document, can be passed via XML string, Base64 encoded XML string or URL of file.

 

Signature is either included in signed XML or in a separate XML with references to signed content. Use options SIG_TYPE_DETACHED, SIG_TYPE_ENVELOPED or SIG_TYPE_ENVELOPING. See XML Signature types.

signPDF

PDFProperties

Result

Used for signing PDF. Input can be passed as base64 encoded pdf file, or URL to file.

Signature is included in PDF. Result is either returned as Base64 encoded pdf file, or saved to local disk.

verifyXML

XMLProperties

Result

verifyPDF

PDFProperties

Result

encrypt

XMLProperties

Result

proXSign can encrypt and decrypt following file types:

·Single XML file

·Single non-XML file

·Parts of XML file

 

decrypt

XMLProperties

Result

timestamp

TSProperties

Result

verifyTimestamp

TSProperties

Result

updateLicense

{fileURL : string, forceUpdate : Boolean}

-

 

See chapter Update License.

 

selectCertificate

Properties

Result

 

Certificate selection dialog is displayed and CertInfo is returned in result without signing anything or doing any other operations.

 

batchSignXML

XMLProperties

BatchResult

Multiple input XML files are signed in one operation with single certificate user selection. Properties as for signXML, except that each file is filled into array, as well as xmlNodePaths, references, URIId, sigId, sigPlacementPaths.

 

For each input XML one entry in all arrays is required. If some of the fields are not used at all, an array can be completely empty.

batchSignPDF

PDFProperties

BatchResult